﻿#ifndef SCANRULEDAO_H
#define SCANRULEDAO_H

#include "scanrule.h"

class ScanRuleDao
{
public:
    ScanRuleDao(QSqlDatabase sqlDatabase);
    ~ScanRuleDao();

    bool getList(QList<ScanRule> &list);
    bool getOne(ScanRule &object);
    bool saveOne(ScanRule &object);
    bool deleteOne(ScanRule &object);
private:
    QSqlDatabase db;
};

#endif // SCANRULEDAO_H
